import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-11-03
 * Time: 8:57
 */
public class App {
    public static void main(String[] args) {
        ApplicationContex context =new ClassPathXmlApplicationContext("spring-config.xml");

        Student student1 = (Student) context.getBean("student1");
        System.out.println(student1);
        Student student2 = (Student) context.getBean("student2");
        System.out.println(student2);

    }
}
